{if $elements neq 0}
<ul>
{foreach item=elem from=$elements}
    <li>{$elem.name}</li>
{/foreach}
</ul>
{else}
{literal}
<script type="text/javascript">
    document.getElementById('indicator1').style="display:none;";
</script>
{/literal}
{/if}